package comitheima.a06oopextendsdemo06;

import com.sun.tools.javac.Main;

public class Test {
    public static void main(String[] args) {
      Manager m=new Manager("001","zhangsan",6666,1000.0);
        System.out.println(m.getId()+" "+m.getName()+" "+m.getSalary()+" "+m.getBonus());
        m.word();
        m.eat();
        System.out.println("--------------");
        Cook c=new Cook("002","lisi",1111);
        System.out.println( c.getId()+" "+c.getName()+" "+c.getSalary());

        c.word();
        c.eat();

    }
}
